import { http } from '@/utils/request'

  // 定义返回数据接口
export interface NoticeData {
    id: number,
    title: string,
    content: string,
    createtime: string
}

interface NoticeResponse {
  msg: string,
  status: number,
  data: NoticeData
}

export interface ListData {
  id: number,
    name: string
}

export interface ListResponse {
  msg: string,
  status: number,
  data:ListData[]
}
  
  export const handleNotice = () => {
    return http.get<NoticeResponse>('/Index/noticeNew', {})
  }

  export const handleList = (params: string) => {
    return http.post<ListResponse>('/Index/playform', {name: params})
  }